[NTG-context] Re: utiliydata

2024-04-25 Thread Hans Hagen
On 4/25/2024 9:25 AM, Thomas A. Schmitz wrote: Nope, very sorry, can’t figure it out… I see job.register, I see I can access structures.refrences.collected, but what about the next level utilitydata.structures.references.collected={ [""]={ [“REF"]={ What does the empty key

[NTG-context] Re: utiliydata

2024-04-25 Thread Thomas A. Schmitz
> > Nope, very sorry, can’t figure it out… I see job.register, I see I can access > structures.refrences.collected, but what about the next level > > utilitydata.structures.references.collected={ > [""]={ > [“REF"]={ > > What does the emp

[NTG-context] Re: utiliydata

2024-04-25 Thread Thomas A. Schmitz
ut what about the next level utilitydata.structures.references.collected={ [""]={ [“REF"]={ What does the empty key do? And how do I retrieve the value of REF.references.realpage? Thomas ___ If you

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
upregister[learnedlong][style=sansbold, textstyle=slanted, n=2, pagenumber=yes, indicator=no] % \define[1]\learnedis{%     \txt{} \getvalue{#1}     \learnedshort{#1}     \learnedlong{#1} } \define[1]\learned{%     \textreference[textref#1]{\expanded{\currentstructuretitle}}     \refer

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
upregister[learnedlong][style=sansbold, textstyle=slanted, n=2, pagenumber=yes, indicator=no] % \define[1]\learnedis{%     \txt{} \getvalue{#1}     \learnedshort{#1}     \learnedlong{#1} } \define[1]\learned{%     \textreference[textref#1]{\expanded{\currentstructuretitle}}     \refer

[NTG-context] How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
]\learnedis{%     \txt{} \getvalue{#1}     \learnedshort{#1}     \learnedlong{#1} } \define[1]\learned{%     \textreference[textref#1]{\expanded{\currentstructuretitle}}     \reference[ref#1]{}% %     \learnedshort{#1}     \learnedlong{\getvalue{#1}} } \starttext \learned{W3}     \startchapter[title

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Wolfgang Schuster
Jeroen schrieb am 16.09.2023 um 22:28: This MWE has a framed text for some verbatim text (code) with as title ref. a counter 1, 2, etc.. Is there a way to change this frame text title as following with the chapter number and a sequential number and the title. Code Fragment 1.1 (The First

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Jeroen
\stopCode \stopchapter \stoptext Op zo 17 sep 2023 om 17:31 schreef Bruce Horrocks : > > > > On 16 Sep 2023, at 21:28, Jeroen wrote: > > > > This MWE has a framed text for some verbatim text (code) with as title > ref. a counter 1, 2, etc.. Is there a way to change

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Bruce Horrocks
> On 16 Sep 2023, at 21:28, Jeroen wrote: > > This MWE has a framed text for some verbatim text (code) with as title ref. a > counter 1, 2, etc.. Is there a way to change this frame text title as > following with the chapter number and a sequential number and th

[NTG-context] Framed Text with Chapter Numbers as Counter

2023-09-16 Thread Jeroen
This MWE has a framed text for some verbatim text (code) with as title ref. a counter 1, 2, etc.. Is there a way to change this frame text title as following with the chapter number and a sequential number and the title. Code Fragment 1.1 (The First Title) Code Fragment 1.2 (The Second Title

[NTG-context] Enable interaction on custom apa cite variant

2023-08-19 Thread Jethro Djan
Hi, I would like a variant of cite per the APA specification that removes the bracket when quoted in mathematical definitions, theorems, etc. I could of course do it manually for reach using right= and left= but I didn't want to do it every time. I have come up with this MWE: \startbuffer[ref

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-24 Thread Aditya Mahajan
s a link that you can click on and cause the > PDF viewer to jump/scroll to the linked destination. In ConTeXt, you > can use \in to create a reference. In LaTeX, you use \ref. > > The situation is that I have a PDF-document (inner.pdf) that defines > several destinations and I want

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-24 Thread Gerion Entrup
e a reference. In LaTeX, you use \ref. The situation is that I have a PDF-document (inner.pdf) that defines several destinations and I want to embed that document with \externalfigure into another PDF-document (outer.pdf). My question is: Is it possible to create references within the source code

Re: [NTG-context] hyperlinks not working with current latest

2023-05-28 Thread Hans Hagen via ntg-context
\completecontent \dorecurse{5} {a\footnote{}} \stoptext LuaTeX generates fine hyperlinks for footnotes. My guess is that the issue is in the LuaMetaTeX binary. Could anyone confirm this issue? i'll check it but (maybe side effect of some ref things Alan and I are working on). The engine has

[NTG-context] Trial to use LibreOffice Calc (+ python) to build ConTeXt customized environnements files

2023-04-10 Thread Garulfo via ntg-context
/" 2/ readme.tex Basic document with content and ref to global environnement file 3/ env_00.tex environnement file that refers to other specific environnement files which are produced by the

[NTG-context] [m-database] How to properly add module arguments?

2023-02-25 Thread Paul Mazaitis via ntg-context
ing for the MWE: --- begin database-mwe.csv --- Ref. No.,Part No.,Description,Remarks ,RD14C82E000J,Carbon 000흮 ±5% 1/4W, --- end database-mwe.csv --- Some notes on database-mwe.csv: I'd like to keep the header row in place to make this file useful for other tools. These are lists of electro

Re: [NTG-context] Wrong prefix in cross references to formulas in external document

2023-01-31 Thread Yaroslav Beltukov via ntg-context
o store the full prefixdata with all necessary prefix numbers > > in the tuc file? Here is my proposal to change the source code: > > > > --- strc-lst-old.lmt2023-01-29 11:30:15.610309948 +0300 > > +++ strc-lst.lmt2023-01-29 12:10:08.864228923 +0300 > > @@ -266,6 +266,16 @

Re: [NTG-context] Wrong prefix in cross references to formulas in external document

2023-01-30 Thread Hans Hagen via ntg-context
and not b then          local s = r.section --- strc-ref-old.lmt    2023-01-29 11:30:15.823643904 +0300 +++ strc-ref.lmt        2023-01-29 12:07:45.697109862 +0300 @@ -2318,7 +2318,17 @@      if data then          numberdata = lists.reordered(data) -- data.numberdata          if numberdata

Re: [NTG-context] Wrong prefix in cross references to formulas in external document

2023-01-29 Thread Alan Braslau via ntg-context
I, too, am struggling with external (and internal) references. I have created (and sent to Hans) a MWE that seems to identify two bugs: 1) External references: in a single product, some of these work, and *some* do not render the numbers (using \in{} [ref], for example). They are, however

[NTG-context] Wrong prefix in cross references to formulas in external document

2023-01-29 Thread Yaroslav Beltukov via ntg-context
[r.section] +if sectiondata then +for k, v in next, sectiondata do +t.prefixdata[k] = v +end +end +end +-- local b = r and t.block if r and not b then local s = r.section --- strc-ref-old.lmt2023-01-29 11:30

Re: [NTG-context] question about multimedia renderings

2023-01-16 Thread Pablo Rodriguez via ntg-context
ed = pdfreserveobject() mu[label] = reserved end -return pdfreference(reserved) +return reserved end local function checkedreference(ref) @@ -639,16 +643,16 @@ local openpage = specification.openpage local closepage = specification.closepage local option= se

Re: [NTG-context] question about multimedia renderings

2023-01-15 Thread Michal Vlasák via ntg-context
etd local set = settings_to_array(symbol) if #set == 1 then setn, setr, setd = set[1], set[1], set[1] elseif #set == 2 then setn, setr, setd = set[1], set[1], set[2] else setn, setr, setd = set[1], set[2], set[3] end

[NTG-context] Achieving different \cite styles

2022-12-08 Thread Jethro Djan via ntg-context
Hello everyone I am interested in being able to cite in different ways. By analogy, I refer to the \texcite{}, \parencite{} and other options available with biblatex in LaTeX. How do I achieve something like \textcite{} in ConTeXt? Here is my MWE: \startbuffer[ref] @Article{wn:2017, author

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-12-06 Thread Hans Hagen via ntg-context
On 12/6/2022 10:04 PM, Rik Kabel via ntg-context wrote: On 2022-12-06 15:32, Hans Hagen via ntg-context wrote: On 12/6/2022 9:06 PM, Rik Kabel via ntg-context wrote: \definelabel[X][text=] \startTEXpage[offset=1cm]    \X\X[a]\X[b]\X\par    \convertnumber{R}{\ref[number][a]}    \convertnumber

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-12-06 Thread Rik Kabel via ntg-context
On 2022-12-06 15:32, Hans Hagen via ntg-context wrote: On 12/6/2022 9:06 PM, Rik Kabel via ntg-context wrote: \definelabel[X][text=] \startTEXpage[offset=1cm]    \X\X[a]\X[b]\X\par    \convertnumber{R}{\ref[number][a]}    \convertnumber{G}{\ref[number][b]} \stopTEXpage maybe like

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-12-06 Thread Hans Hagen via ntg-context
On 12/6/2022 9:06 PM, Rik Kabel via ntg-context wrote: \definelabel[X][text=] \startTEXpage[offset=1cm]   \X\X[a]\X[b]\X\par   \convertnumber{R}{\ref[number][a]}   \convertnumber{G}{\ref[number][b]} \stopTEXpage maybe like this: \definelabel[X][text=] \startTEXpage[offset=1cm] (\X

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-12-06 Thread Rik Kabel via ntg-context
On 2022-01-19 12:39, Rik Kabel via ntg-context wrote: This is still a problem with the current standalone. \definelabel[X][text=] \startTEXpage[offset=1cm]   \X\X[a]\X[b]\X\par   \convertnumber{R}{\ref[number][a]}   \convertnumber{G}{\ref[number][b]} \stopTEXpage

Re: [NTG-context] Command for specifying et al limit

2022-09-27 Thread jethro Reuel via ntg-context
Dear Alan, Thanks again for all your help. Deleting the definebtxrendering[ref] part makes my citations disappear. I get something like: says in their paper… Also, the setupbtx[apa:list]… doesn’t solve my etallimit problem. Could you test my code and tweak it for me? Can’t find examples

Re: [NTG-context] Command for specifying et al limit

2022-09-26 Thread Alan Braslau via ntg-context
On Mon, 26 Sep 2022 21:40:14 -0600 Alan Braslau via ntg-context wrote: > On Sat, 24 Sep 2022 18:57:25 + > Jethro Djan via ntg-context wrote: > > > \setupbtx[ > > dataset=ref, > > etaldisplay = 1, > > etallimit = 1, > > ] > > Remove extr

Re: [NTG-context] Command for specifying et al limit

2022-09-26 Thread Alan Braslau via ntg-context
On Sat, 24 Sep 2022 18:57:25 + Jethro Djan via ntg-context wrote: > \setupbtx[ > dataset=ref, > etaldisplay = 1, > etallimit = 1, > ] Remove extra spaces. Alan ___ If your question

[NTG-context] Command for specifying et al limit

2022-09-24 Thread Jethro Djan via ntg-context
Dear list, I am trying to specify that 'et al’ should be appended after the first author if paper has multiple authors. It seems from the mkiv-publications.pdf manual that it should work like this but it doesn’t. Here is my MWE: \startbuffer[ref] @Article{bb:2017, author = {Bronstein

Re: [NTG-context] "pragma-ade.com" is now a domain parking page

2022-07-01 Thread Taco Hoekwater via ntg-context
;; MSG SIZE rcvd: 63 > > >$ whois 208.91.197.132 >NetRange: 208.91.196.0 - 208.91.197.255 >CIDR: 208.91.196.0/23 >NetName:CONFLUENCE-NETWORK-INC >NetHandle: NET-208-91-196-0-1 >Parent: NET208 (NET-208-0

[NTG-context] "pragma-ade.com" is now a domain parking page

2022-07-01 Thread Max Chernoff via ntg-context
ent: NET208 (NET-208-0-0-0-0) NetType:Direct Allocation OriginAS: AS40034 Organization: Confluence Networks Inc (CN) RegDate:2011-04-15 Updated:2015-11-23 Ref:https://rdap.arin.net/registry/ip/208.91.196.0 OrgName:

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-01-19 Thread Rik Kabel via ntg-context
This is still a problem with the current standalone. \definelabel[X][text=] \startTEXpage[offset=1cm]   \X\X[a]\X[b]\X\par   \convertnumber{R}{\ref[number][a]}   \convertnumber{G}{\ref[number][b]} \stopTEXpage %% The above example fails to compile when there is no tuc

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2021-10-28 Thread Rik Kabel via ntg-context
ble glue units , pointing to the second \convertnumber line. \definelabel[XX]%[text=,before=,after=,alternative=inright]     \startTEXpage[offset=2em]      abc\XX[xx]\par      \ref[number][xx] ·      \convertnumber{r}{1} ·      \convertnumber{R}{\ref[number][xx]}     \stopTEXpage In this case I

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2021-10-28 Thread Hans Hagen via ntg-context
ond \convertnumber line. \definelabel[XX]%[text=,before=,after=,alternative=inright] \startTEXpage[offset=2em]  abc\XX[xx]\par  \ref[number][xx] ·  \convertnumber{r}{1} ·  \convertnumber{R}{\ref[number][xx]} \stopTEXpage In this case I am trying to display with roman numer

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2021-10-27 Thread Rik Kabel via ntg-context
ore=,after=,alternative=inright] \startTEXpage[offset=2em]  abc\XX[xx]\par  \ref[number][xx] ·  \convertnumber{r}{1} ·  \convertnumber{R}{\ref[number][xx]} \stopTEXpage In this case I am trying to display with roman numerals the number generated in the label created thro

[NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2021-10-27 Thread Rik Kabel via ntg-context
bel[XX]%[text=,before=,after=,alternative=inright] \startTEXpage[offset=2em]  abc\XX[xx]\par  \ref[number][xx] ·  \convertnumber{r}{1} ·  \convertnumber{R}{\ref[number][xx]} \stopTEXpage In this case I am trying to display with roman numerals the number generated in the la

[NTG-context] Rotating pages

2021-08-07 Thread Jeroen via ntg-context
[ A4,landscape] \setuppagenumbering[ location={footer,center}] \setbreakpoints[compound] \starttext \startsection[title={MyTitle},ref={apx}] \dorecurse{10}{\input zapf\par} \stopsection \stoptext \stopbuffer \savebuffer[list=apx, file=apx.tex] \starttext \startbodymatter

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-08-06 Thread Jeroen via ntg-context
tuphead[chapter][style=\bfd] \setuphead[section][style=\bfc] \setuphead[subsection][style=\bfb] \setuphead[subsubsection][style=\bf] \setupitemize[autointro] % prevent orphan list intro \setupitemize[indentnext=no] \starttext \startsection[title={MySlideTitle},ref={myref1}] Body text \startitem

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-07-31 Thread Jeroen via ntg-context
next=no] \starttext \startsection[title={MySlideTitle},ref={myref1}] Body text \startitemize \item Item 1 \item Item 2 \stopitemize \stopsection \startsection[title={MySlideTitle},ref={myref2}] Body text \stopsection \stoptext\starttext text \stoptext \stopbuffer \savebuffer[list=slides,

Re: [NTG-context] multimedia PDF in ConTeXt

2021-07-30 Thread Michal Vlasák via ntg-context
mt @@ -655,9 +655,6 @@ local function insertrenderingwindow(specification) } local width = specification.width or 0 local height = specification.height or 0 -if height == 0 or width == 0 then --- todo: sound needs no window -end context(nodeinjections.annotation(width,

Re: [NTG-context] working on page refs with MP

2021-03-19 Thread Werner Hennrich
number in the MPvariables first= and next= ?? \startsetups page:header     \setupMPvariables[hdrPgs]         [curr=\pagenumber,         first={\ref[page][\headerfirst]},         next={\ref[page][\headernext]}]     I've tried \expanded and \numeric without success or alternatively

Re: [NTG-context] working on page refs with MP

2021-03-18 Thread Hans Hagen
On 3/18/2021 6:14 PM, Werner Hennrich wrote: metafun > log > metafun > log > error: Improper subscript has been replaced by zero metapost    > log > <*> ... numeric numFirst; numFirst := \ref [page] watch closely to the previous log line ... you're mi

[NTG-context] working on page refs with MP

2021-03-18 Thread Werner Hennrich
Hello everyone, I'm having page references and want to calc / draw 'Page x of y' for some subsections in MP. How can I pass 'em down so I end up with numbers to do calculations with? \setuplayout[header=15mm] \def\myHeader[#1]#2{ \ignorespaces \getdummyparameters[ref=,next=,#1

Re: [NTG-context] Display reference number as Roman number

2021-01-06 Thread Rik Kabel
On 11/24/2020 22:09, Rik Kabel wrote: Hello all, What I thought should be a simple conversion escapes me. I have a reference (created originally via a label defined by \definelabel) that, when referenced as \in[label] or \ref[number][label] displays a number, and that is how I normally use

[NTG-context] Display reference number as Roman number

2020-11-24 Thread Rik Kabel
Hello all, What I thought should be a simple conversion escapes me. I have a reference (created originally via a label defined by \definelabel) that, when referenced as *\in[label]* or *\ref[number][label]* displays a number, and that is how I normally use it. However, I want to display

Re: [NTG-context] Hyphenation patterns

2020-10-09 Thread Denis Maier
s-so-ciates dec-li-na-tion oblig-a-tory phil-an-thropic present presents project projects reci-procity re-cog-ni-zance ref-or-ma-tion ret-ri-bu-tion ta-ble",    ["length"]=168,    ["n"]=14,   }, Would it be possible to add more exceptions to that list as they come

Re: [NTG-context] Hyphenation patterns

2020-10-09 Thread Hans Hagen
s-so-ciate as-so-ciates dec-li-na-tion oblig-a-tory phil-an-thropic present presents project projects reci-procity re-cog-ni-zance ref-or-ma-tion ret-ri-bu-tion ta-ble",   ["length"]=168,   ["n"]=14,  }, Would it be possible to add more exceptions to that list as they com

Re: [NTG-context] Hyphenation patterns

2020-10-09 Thread Denis Maier
errors are to be expected, which is why \hyphenation exists. I see. I've noticed lang-us.lua has a list of exceptions in it:  ["exceptions"]={   ["characters"]="abcdefghijlmnoprstuyz",   ["data"]="as-so-ciate as-so-ciates dec-li-na-tion oblig-a-tory

Re: [NTG-context] Citeproc

2020-10-05 Thread Aditya Mahajan
ount of available styles in > > > CSL, I nevertheless think that this could be a worthwile addition. What > > > would be necessary to make such a toll usable with ConTeXt? How > > > complicated would that be? > > > > In principle, this should be trivial. D

Re: [NTG-context] Citeproc

2020-10-05 Thread Hans Hagen
, this should be trivial. Define a new command, say \citeproc[ref], which saves the values of `ref` to a lua table, and at the end of the run, write that lua table to an aux .json file, call citeproc and store output to a new file, and on the second run read from that file. This is essentially how

Re: [NTG-context] Citeproc

2020-10-04 Thread Aditya Mahajan
principle, this should be trivial. Define a new command, say \citeproc[ref], which saves the values of `ref` to a lua table, and at the end of the run, write that lua table to an aux .json file, call citeproc and store output to a new file, and on the second run read from that file. This is ess

Re: [NTG-context] color problem

2020-10-02 Thread Henri Menke
plus][h=606ABD] > > \definecolor[A4plus][h=FFC700] > > \definecolor[A5plus][h=D0202B] > > \definecolor[A6plus][h=EF8600] > > \definecolor[A7plus][h=0082AA] > > > \setupcolors[textcolor=A1plus] > > > \usemodule[tikz] > > > > \starttext >

[NTG-context] color problem

2020-10-01 Thread Susanne G. Loeber
=FFC700] \definecolor[A5plus][h=D0202B] \definecolor[A6plus][h=EF8600] \definecolor[A7plus][h=0082AA] \setupcolors[textcolor=A1plus] \usemodule[tikz] \starttext \startchapter[title={Colour test}, ref=colourtest] \startsection[title={Section}] \starttikzpicture \draw[text=A6plus] (0,0

Re: [NTG-context] Using variables and macros for styling of section title and line in table of contents

2020-07-22 Thread James Withers
ent in the ToC like the list > argument. > > > The minimal working example below shows what I'm trying to do. > > > > Best wishes and many thanks in advance. > > > > James > > > > > \define\mytitle{\getvariable{myvar}{title}\crlf{\tfx\getvariable{

Re: [NTG-context] Using variables and macros for styling of section title and line in table of contents

2020-07-22 Thread Wolfgang Schuster
but it won't work when you try to show the argument in the ToC like the list argument. The minimal working example below shows what I'm trying to do. Best wishes and many thanks in advance. James \define\mytitle{\getvariable{myvar}{title}\crlf{\tfx\getvariable{myvar}{date}\hfill\getvariable{myvar}{ref

[NTG-context] Using variables and macros for styling of section title and line in table of contents

2020-07-22 Thread James Withers
\mytitle{\getvariable{myvar}{title}\crlf{\tfx\getvariable{myvar}{date}\hfill\getvariable{myvar}{ref}}} \define\mylist{\getvariable{myvar}{list}---{\bf \getvariable{myvar}{date}}} \starttext \completecontent \setvariables[myvar][ title={What I would like}, date={2020}, ref={Reference No 1}, list

[NTG-context] Setup left, right, between entries in custom cite of multiple references

2020-06-06 Thread Mike O'Connor
I'm trying to customise \cite and unable to get inbetween= to appear between entries in a multi-ref citation. My own customisations via a copy of publ-imp-apa.mkvi and .lua have this problem, so in case it was due to my customisation I went back to solid ground — the Chemistry example, pp. 70

Re: [NTG-context] \placetable[location=split] reference ??

2020-05-07 Thread Benjamin Buchmuller
> In Table \in[tab1] > > \stoptext > > > It has [location=split], which I need this because xtable doesn’t like to be > placed without a split; and apparently neither does it accept the > \placetable[ref]{...} syntax. However, the reference is now no longer > detec

[NTG-context] \placetable[location=split] reference ??

2020-04-22 Thread Benjamin Buchmuller
need this because xtable doesn’t like to be placed without a split; and apparently neither does it accept the \placetable[ref]{...} syntax. However, the reference is now no longer detected. I can see that the split table’s caption is about to become "Table 1.a.", "Table

Re: [NTG-context] Referencing formulas doesn't work?

2020-02-09 Thread Exp
> > c^2 = a^2 + b^2. > > \stopformula > > And now we can refer to formula \ref[][formulalabel]. > > > > \stoptext > > > > There is a blank where the formula label should be at “now we

Re: [NTG-context] Referencing formulas doesn't work?

2020-02-09 Thread Wolfgang Schuster
On Mon, 10 Feb 2020 05:58:50 +0800 Jon Wong wrote: > MWE: > > \starttext > > The famous result (and again) is given by > \placeformula[formulalabel] > \startformula > c^2 = a^2 + b^2. > \stopformula > And now we can refer to formula \ref[][formulalabel]. >

[NTG-context] Referencing formulas doesn't work?

2020-02-09 Thread Jon Wong
MWE: \starttext The famous result (and again) is given by \placeformula[formulalabel] \startformula c^2 = a^2 + b^2. \stopformula And now we can refer to formula \ref[][formulalabel]. \stoptext There is a blank where the formula label should be at “now we can refer to formula ---“. Regards

Re: [NTG-context] Cross references to column numbers

2019-11-15 Thread Taco Hoekwater
enting this, but I am afraid it does not work properly, at >> least not if there are several targets following one after another. >> >> Consider this example: >> >> >> \setupcolumns[ >> n=2, >> ] >> \setuplinenumbering[ >> step=5, &g

Re: [NTG-context] Cross references to column numbers

2019-11-15 Thread Oliver von Criegern
, ] \def\Lab#1{% \pagereference[#1]% \pagereference[column:#1]% \someline[#1]% } \def\Ref#1{ page \at[#1], column \doifelsereferencefound{column:#1}{\number\referencecolumnnumber}{}, line \inlinerange[#1]. } \starttext \startcolumns \startlinenumbering REFERENCES:\par A: \Ref{A}\par B: \Ref{B}\par C

Re: [NTG-context] Cross references to column numbers

2019-11-12 Thread Oliver von Criegern
it does not work properly, at least not if there are several targets following one after another. Consider this example: \setupcolumns[     n=2, ] \setuplinenumbering[     step=5,     method=page, ] \def\Lab#1{% \pagereference[#1]% \pagereference[column:#1]% \someline[#1]% } \def\Ref#1{ page

Re: [NTG-context] Cross references to column numbers

2019-09-10 Thread Oliver von Criegern
own (which then can clash with some existing name). Also, the ref mechanism evolved over decades and we're not going to drop compatibility. Hans -   Hans Hagen | PRAGMA ADE   Ridde

Re: [NTG-context] Cross references to column numbers

2019-09-10 Thread Hans Hagen
give back different things (a title, a number, a range, a ...) and packaging all that in one macro doens't make it cleaner so soon users will then wrap complex calls in a macro of their own (which then can clash with some existing name). Also, the ref mechanism evolved over decades and we're not goi

Re: [NTG-context] hypertarget and hyperlink in ConTeXt?

2019-08-31 Thread Jon Wong
Hi all, I’m having trouble getting \textreference to show up. MWE: \starttext \textreference[bleh]{\bf Ref One}. \page \textreference[blah]{\bf Ref Two}. \at[bleh]. \at[blah]. \stoptext Regards Jon > On Aug 28, 2019, at 7:40 PM, Jon Wong wrote: > > Hi all, > >

[NTG-context] index page ranges where start page == end page

2019-07-09 Thread Sanjoy Mahajan
m book.tuc to check # that each xref points to an actual entry, and that, further, "see # also" src entries have at least one page ref (perhaps in subtree) # due to bug in slpp parser: replace "-" (minus signs) in data with "_" from slpp import slpp as lua from sys import s

Re: [NTG-context] how to get reference label from stacked itemize

2019-04-06 Thread Henning Hraban Ramm
> \stopitemize > \stopitemize > > how to label / ref the generated label for item 2.b ? > > see (2.b) Test Did you try \item[myref] and \in[myref]? Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net ht

[NTG-context] how to get reference label from stacked itemize

2019-04-06 Thread Floris van Manen
Could someone point me to the docs where to find the proper way to make a reference to some stacked itemize context? \startitemize[n] \item One \item Two \startitemize[a] \item A \item B Test \stopitemize \stopitemize how to label / ref the generated label for item 2.b ? see (2.b) Test

[NTG-context] Space between initials in bibliography

2019-03-02 Thread Mikael P. Sundqvist
space inbetween initials? Minimal example below, and I attach the result without the setting above (no space V.I. Arnol'd) and with the setting above (space V. I. Arnol'd). /Mikael %Example \startbuffer[ref] @book {arnold, AUTHOR = {Arnold, Vladimir I.}, TITLE = {Ordinary differential

Re: [NTG-context] TeX Live 2019: attempt to call a nil value (upvalue 'isfile')

2019-03-01 Thread Hans Hagen
( forget the time, it's a zero-optimized binary (fast to compile)) It takes even longer for me with the binary from the distribution. On the mac, is that one run? With luatex 1.10 (mingw 64 version), when i delete the tuc file so with multiple runs to get the cross ref and lists right, I get

Re: [NTG-context] State of the reference manual contextref.pdf

2019-02-10 Thread Hans Hagen
On 2/10/2019 8:13 PM, Marco Patzer wrote: On Sun, 10 Feb 2019 17:43:09 +0100 Hans Hagen wrote: that effort was changed in cooking up smaller independent manuals ... Which I personally like. It provides more in depth knowledge. that ref manual still applies to much (encodings and fonts

Re: [NTG-context] State of the reference manual contextref.pdf

2019-02-10 Thread Marco Patzer
On Sun, 10 Feb 2019 17:43:09 +0100 Hans Hagen wrote: > that effort was changed in cooking up smaller independent manuals ... Which I personally like. It provides more in depth knowledge. > that ref manual still applies to much (encodings and fonts have > changed of course) I k

Re: [NTG-context] State of the reference manual contextref.pdf

2019-02-10 Thread Hans Hagen
that has ever taken place. that effort was changed in cooking up smaller independent manuals ... that ref manual still applies to much (encodings and fonts have changed of course) Hans - Hans

Re: [NTG-context] linking to an external PDF file

2018-10-08 Thread Pablo Rodriguez
turncode=\scratchcounter\else > \def\suffix{.tiff} > \edef\returncode{\URIReturnCode{\theurl\suffix}} > \fi > \ifnum\returncode=\scratchcounter\else > \def\suffix{.tif} > \edef\returncode{\URIReturnCode{\theurl\suffix}} > \fi > } > > % Give up if returncode other

Re: [NTG-context] linking to an external PDF file

2018-10-08 Thread Hans van der Meer
ive up if returncode other then 200. \ifnum\returncode=200\relax % Page number might be added. \doifelse{\xmlatt{#1}{page}}{\empty} {\let\thep\empty} {\edef\thep{\letterhash page=\xmla

Re: [NTG-context] linking to an external PDF file

2018-10-07 Thread Hans Hagen
::whatever:1] \goto{note 2}[first::whatever:2] \in{note (1)}[first::whatever:1] \in{note (2)}[first::whatever:2] \in{note (3)}[whatever:3] \in{note (4)}[whatever:4] \stoptext -- the \in ref to the other doc will work ok in a next beta (normally one will use a proper project

Re: [NTG-context] Modifying bibliography entries using lua

2018-07-24 Thread Stanislav Sokolenko
match and make bold multiple names: |\startbuffer[ref]@article{solo, author ={MyLast, MyFirst}, title ={Solo work}, journal ={Journal}, year ={2000}, month ={1}, volume ={1}}@article{co, author ={OtherLast, OtherFirst and MyLast, MyFirst and CoLast, CoFirst}, title ={Joint work}, journal =

Re: [NTG-context] Modifying bibliography entries using lua

2018-07-23 Thread Hans Hagen
.* interface instead Thanks, Stan Longer MNWE: \stopluacode \startbuffer[ref] @article{solo,   author = {Lastname, Firstname},   title = {Solo work},   journal = {Journal},   year = {2000},   month = {1},   volume = {1} } \stopbuffer \usebtxdataset[ref][ref.buffer] \setupbtx[dataset=ref

[NTG-context] Modifying bibliography entries using lua

2018-07-23 Thread Stanislav Sokolenko
the publications table or other means? I've gone over the source code but I can't decipher what btxflush is actually doing. Thanks, Stan Longer MNWE: \stopluacode \startbuffer[ref] @article{solo,   author = {Lastname, Firstname},   title = {Solo work},   journal = {Journal},   year = {2000},   month

Re: [NTG-context] latest beta and \seeindex

2018-06-25 Thread Alan Braslau
hould add too that in this particular volume our contributors > sometimes mention different terms for the same thing as in “This is > called p or q”. Indexing both terms (p and q) separately and the > adding x-ref is one way to go but indexing the more commonly used > term and adding a mere x-ref for th

Re: [NTG-context] latest beta and \seeindex

2018-06-25 Thread Hans Hagen
generate the indices for my book, \seeindex{A}{B} works only if it is a unique x-ref and A is a heading. Multiple x-refs to the same heading fail as do x-refs to subheadings. sure, \seeindex{fun}{blah}% not shown \seeindex{fun}{humbug} % not shown \seeindex{fun}{bug

Re: [NTG-context] latest beta and \seeindex

2018-06-25 Thread Alan Bowen
I should add too that in this particular volume our contributors sometimes mention different terms for the same thing as in “This is called p or q”. Indexing both terms (p and q) separately and the adding x-ref is one way to go but indexing the more commonly used term and adding a mere x-ref

Re: [NTG-context] latest beta and \seeindex

2018-06-24 Thread Henning Hraban Ramm
games}{entertainment}% not shown >> \placeindex[n=1] >> \stoptext >> When I generate the indices for my book, \seeindex{A}{B} works only if it is >> a unique x-ref and A is a heading. Multiple x-refs to the same heading fail >> as do x-refs to subheadings. > sure, >

Re: [NTG-context] latest beta and \seeindex

2018-06-24 Thread Hans Hagen
with heading (as it should be) \seeindex{fun}{blah}% not shown \seeindex{fun}{humbug}% not shown \seeindex{fun}{bug}% not shown \seeindex{fun+games}{entertainment}% not shown \placeindex[n=1] \stoptext When I generate the indices for my book, \seeindex{A}{B} works only if it is a unique x-ref

[NTG-context] latest beta and \seeindex

2018-06-23 Thread Alan Bowen
{fun}{blah} % not shown \seeindex{fun}{humbug} % not shown \seeindex{fun}{bug} % not shown \seeindex{fun+games}{entertainment} % not shown \placeindex[n=1] \stoptext When I generate the indices for my book, \seeindex{A}{B} works only if it is a unique x-ref and A is a heading. Multiple x-refs

Re: [NTG-context] index x-ref problem

2018-05-25 Thread Alan Bowen
This is fixed in the latest beta. Thanks, Hans! Alan On Sat, May 19, 2018 at 8:05 AM Alan Bowen wrote: > IF I am doing this correctly, then, there seems to be problems in the > current standalone​ when there are two x-refs to a single heading. The > space after “and” is

Re: [NTG-context] Defining command with optional and mandatory arguments

2018-05-24 Thread Alan Braslau
w users, it is worth repeating here that arguments within braces can be either a comma-separated list of words OR a comma-separated list of keyword=value pairs, BUT NOT A MIXTURE OF BOTH. Generally, a keyword=value exists for all words, for example \cite[authoryear][ref] and \cite[alternative=au

[NTG-context] index x-ref problem

2018-05-19 Thread Alan Bowen
IF I am doing this correctly, then, there seems to be problems in the current standalone​ when there are two x-refs to a single heading. The space after “and” is missing and should the order of the refs not be alphabetical? MWE \starttext \seeindex{animal}{cat} \seeindex{animal}{quadruped}

Re: [NTG-context] Passing two arguments from Lua to Context

2018-02-13 Thread Hans Hagen
acode you need to use context["goto"]("Index",{"ref:index"}) -- this does not work because "goto" is a reserved lua word you can't say foo.if or foo.end either \input ward.tex \stopchapter \starttitle[title={Index}] \startluacode local s,t = &

Re: [NTG-context] Passing two arguments from Lua to Context

2018-02-13 Thread Otared Kavian
de context.index("Knuth") context.index("Ward") context("Read Knuth and see also the ") local s,t = "Index","ref:index" context.MyGoTo({s},{t}) -- context.goto("Index",{"ref:index"}) --

[NTG-context] Paasing two arguments from Lua to Context

2018-02-13 Thread Otared Kavian
quot; -- context("\\goto{s}[t]") -- this does not work -- context.goto({"Index"},{"ref:index"}) -- this does not work context("\\goto{Index}[ref:index]") \stopluacode \input ward.tex \stopchapter \starttitle[title={Index}] % one could

Re: [NTG-context] Latest beta: reference to items broken in mkiv

2018-02-09 Thread r . ermers
][a,repeat][width=2em] %\setupitemgroup[itemize][3][r][width=3em] \starttext \startitemize[n] \item [ref:1] item 1 \startitemize[a] \startitem[ref:a] subitem a, reference a \stopitem \item [ref:b] item b \startitem[ref:c] Item c, reference c \stopitem \stopitemize \item[ref:2] Item 2, reference 2

Re: [NTG-context] Latest beta: reference to items broken in mkiv

2018-02-07 Thread r . ermers
». >>> >>> I guess what you want to obtain can be achieved with the following example >>> below. At least here with either versions of Context I have the output is >>> as expected. >>> >>> Best regards: OK >>> >&g

Re: [NTG-context] Latest beta: reference to items broken in mkiv

2018-02-07 Thread Otared Kavian
itemgroups with the keyword « >> repeat ». >> >> I guess what you want to obtain can be achieved with the following example >> below. At least here with either versions of Context I have the output is as >> expected. >> >> Best regards: OK >&g

Re: [NTG-context] Latest beta: reference to items broken in mkiv

2018-02-07 Thread Otared Kavian
repeat ». >> >> I guess what you want to obtain can be achieved with the following example >> below. At least here with either versions of Context I have the output is as >> expected. >> >> Best regards: OK >> >> %% begin

  1   2   3   4   5   6   >